package com.woniuxy.third.service;

import com.woniuxy.third.entity.Chapter;
import com.woniuxy.third.entity.Course;
import com.woniuxy.third.entity.Teacher;
import com.woniuxy.third.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CourseService {
    public Course findCourseByid(int id);
    public List<Course> findAllCourse();
    public boolean addCourse(Course course);
    public List<Chapter> findChaptersByCourseId(int id);
    public List<Course> findCourseByUid(int uid);
    public int updateCourse(Course course);
    List<Course> findCollectionCourseByUid(int uid);

    List<Course> findCourseBytid(int id);

    Course findCourseByName(String name,int id);
}
